package com.chen.springboot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chen.springboot.entity.RefundOrder;

import javax.servlet.http.HttpServletResponse;

/**
 * @Author Chen
 * @Date 2024/12/19 09:49
 */
public interface RefundOrderService {

    /**
     * 查询所有退款订单
     */
    Page<RefundOrder> getAll(Integer pageNum, Integer pageSize,String search);

    /**
     *
     * @param id 删除订单
     */
    void deleteOne(Integer id);

    /**
     *
     * @param response 下载图表
     */
    void download(HttpServletResponse response);

    /**
     *
     * @param refundOrder 完成退款
     */
    void refunded(RefundOrder refundOrder);

    /**
     *
     * @param refundOrder 状态改为退款中
     */
    void refunding(RefundOrder refundOrder);

    /**
     * 更新退款时间
     */
    void refundTime(String orderNo);
}
